<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Test threads fibonacci</title>
  </head><body>

  <div id="result">5</div>

  <script language="javascript">


    var worker = new Worker("fibonacci.js");

    worker.onmessage = function(event) {
      document.getElementById("result").textContent = event.data;
      dump("Got: " + event.data + "\n");
    };

    worker.onerror = function(event) {
      dump("Worker error: " + event.data + "\n");
      throw event.data;
    };

    worker.postMessage("5");

  </script>
  

</body></html>